package com.medvalley.tcm.dao;

import com.medvalley.tcm.domain.YangShengMethod;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface YangShengMethodDao extends JpaRepository<YangShengMethod, Long> {

    YangShengMethod findOneByMedicineNameAndStatus(String medicineName,int status);

    Page<YangShengMethod> findAllByStatus(Pageable pageable, int status);

    List<YangShengMethod> findAllByIdIn(List<Long> ids);

    List<YangShengMethod> findAllByMedicineNameIn(List<String> medicineNames);

}
